import type { PageResult, TimeResult } from "./global"

// 通知类型
export type Notify = {
    id: number
    uid: number
    type: number
    title: string
    contents: string
    image_url: string
    is_read: number
    note: string
    status: number
} & TimeResult

// 发布通知参数类型
export type PublishNotifyParams = {
    uid: number
    type: number
    title: string
    contents: string
    image_url?: string
    note?: string
}

// 通知列表参数类型
export type NotifyListParams = {
    uid?: number
    private_public?: number
    type?: number
    title?: string
    is_read?: string
    status?: string
    page?: number
    page_size?: number
}

// 编辑通知参数类型
export type EditNotifyParams = {
    id: number
    type?: number
    title?: string
    contents?: string
    image_url?: string
    is_read?: string
    note?: string
}

// 通知列表结果类型
export type NotifyListResult = {
    notifies: Notify[]
} & PageResult

// 通知数量结果类型
export type NotifyTotalResult = {
    total: number
}
